package com.example.bitmap;


/**
 * @author shanchong
 * @date 2021/2/24
 **/
public class Demo {
    public static void main(String[] args) {
//        System.out.println(1<<(16-1));
//        System.out.println(Integer.toBinaryString(1<<(16-1)));
//        for (int i = 0; i < 36; i++) {
//            System.out.println(i + "->" +Integer.numberOfLeadingZeros(i));
//            System.out.println(Integer.toBinaryString(i) + "->" +Integer.toBinaryString(Integer.numberOfLeadingZeros(i)));
//        }
//        System.out.println(Demo.class.getClassLoader());
//        System.out.println(JSONUtils.class.getClassLoader());
//        System.out.println(JSONUtils.toJSONString(""));
        System.out.println(Integer.toBinaryString(-1));
        System.out.println(Integer.toBinaryString(32-3));
        System.out.println(Integer.toBinaryString(-1<<(32-3)));
        System.out.println(-1<<(32-3));
    }
}
